import { BrowserWindow } from 'electron'
import { getWindowURL, getBaseWindowOptions } from '../utils'


export const createWindow = () => {
    const win = new BrowserWindow({
        ...getBaseWindowOptions(),
        title: 'switch',
        width: 900,
        height: 600,
        minWidth: 600,
        minHeight: 400
    })

    win.loadURL(getWindowURL('main'))

    win.on('ready-to-show', () => {
        win.show()
    })

}